#ifndef TEXTREPORT_H
#define TEXTREPORT_H

#include "report.h"

class TextReportPrivate;

namespace YReport {
class REPORTSHARED_EXPORT TextReport : public Report
{
public:
    TextReport(QObject *parent);
    ~TextReport();
    void exportPdf(const QTextDocument *document, const QString &caption=QString(),  const QString &filename=QString());

    void preview(const QTextDocument *document, const QString &title = QString());
protected slots:
    void print(QPrinter *printer);
    void paintPage(QPainter *painter, QTextDocument *document, int pagenum);

private:
    TextReportPrivate *p;

};

} //namespace YReport

#endif // TEXTREPORT_H
